
public class PosionWeapon extends Weapon
{
	
	private Dice posion;
	private int turns;

	public PosionWeapon()
	{
		super();
		this.posion = new Dice(1,4,1);
		this.turns = 5;
	}

	public PosionWeapon(int toHit, int diceNum, int diceSides, int damBonus,int posNum, int posSides, int posBonus, int turns)
	{
		super(toHit, diceNum, diceSides, damBonus);
		this.posion = new Dice(posNum, posSides, posBonus);
		this.turns = turns;
	}

	public PosionWeapon(int toHit, int diceNum, int diceSides, int damBonus,
			int useCost,int energyCost, int weight,int posNum, int posSides, int posBonus, int turns)
	{
		super(toHit, diceNum, diceSides, damBonus, useCost,energyCost, weight);
		this.posion = new Dice(posNum, posSides, posBonus);
		this.turns = turns;
	}
	public DOTeffect posion()
	{
		int damage;
		double reduce;
		damage = this.posion.roll();
		reduce = (double) damage / this.turns;
		System.out.println("damage:" + damage + " reduce:" + reduce);
		return new DOTeffect(damage, reduce);
	}
	
	public Attack attack()
	{
		posion();
		return super.attack();
	}
	
	public String toString()
	{
		return super.toString() + "\nposion:" + this.posion;
	}

}
